<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="/favicon.ico">
    <title>更改头像 -- 佩奇说说</title>
    <!-- Bootstrap core CSS -->
    <link href="/css/bootstrap.min.css" rel="stylesheet">
    <link href="/css/jumbotron.css" rel="stylesheet">
    <style>
        body {
            padding-top: 120px;
        }
        #error{
            display: none;
        }
    </style>
  </head>

  <body>

    <% include header.ejs %>
    <div class="container">
      <!-- Example row of columns -->
      <div class="row col-lg-6">
        <h1>上传头像</h1>
        <form method="post" action="/dosetavatar" enctype="multipart/form-data">
            <div class="form-group">
                <label for="Username">更改头像</label>
                <input type="file" class="form-control" id="headPortrait" name="headPortrait">
            </div>
            <button type="submit" id="regist" class="btn btn-default">上传</button>
        </form>
      </div>
      <hr>

      <footer>
        <p>&copy; 2016 Company, Inc.</p>
      </footer>
    </div> <!-- /container -->

    <script src="js/jquery-1.11.3.min.js"></script>
    <script>window.jQuery || document.write('<script src="/js/vendor/jquery.min.js"><\/script>')</script>
    <script src="/js/bootstrap.min.js"></script>
    <script type="text/javascript">
       
    </script>
  </body>
</html>
